<?php

include_once dirname(__FILE__) . '/../system/settings.php';
$id = $_GET['id'];
$data = VeiculosControl::VerifyFeatured($id);
if (isset($data)) {
    VeiculosControl::Featured($id, 0);
    header("location: " . $_GET['redirect']);
} else {
    if (isset($id)) {
        VeiculosControl::Featured($id, 1);
        header("location: " . $_GET['redirect']);
    }
}
?>
